package com.example.justbuy.pojo;

import java.util.Date;
import java.util.List;

/**
 * 购物车表
 * @author lxp
 * */
public class ShoppingCart {
    /*编号*/
    private int id;
    /*商品id*/
    private int goodsid;
    /*店铺id*/
    private int storeid;
    /*用户id*/
    private int userid;
    /*商品数量*/
    private int amount;
    /*对应商品金额*/
    private double money;
    /*添加时间*/
    private Date addTime;
    /*用户实体*/
    private  User user;
    /*goods实体*/
    private List<Goods> goods;
    /*Store实体*/
    private Store store;
    /*models对应商品的规格*/
    private String models;

    public String getModels() {
        return models;
    }

    public void setModels(String models) {
        this.models = models;
    }

    public  ShoppingCart(){}

    public  ShoppingCart(int id,int goodsid,int storeid,int userid,int amount,double money,
                         User user,Goods goods,Store store,Date addTime){
        this.id=id;
        this.goodsid=goodsid;
        this.storeid=storeid;
        this.userid=userid;
        this.amount=amount;
        this.money=money;
        this.user=user;
        this.store=store;
        this.addTime=addTime;
    }
    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }





    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(int goodsid) {
        this.goodsid = goodsid;
    }

    public int getStoreid() {
        return storeid;
    }

    public void setStoreid(int storeid) {
        this.storeid = storeid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }


}
